package com.example.demo.mapper;

import java.util.Map;

import com.example.demo.base.mapper.BaseMapper;
import com.example.demo.entity.BookComment;

/**
 * 书评论DAO接口
 * 
 * @author wang
 *
 */
public interface BookCommentMapper extends BaseMapper<BookComment> {
	/**
	 * 计算平均分
	 * @return
	 */
	Float getByMapAvg(Map<String, Object> map);
	/**
	 * 计算总分
	 * @param map
	 * @return
	 */
	Float getByMapGradeTotal(Map<String, Object> map);
	
	
	

}
